<html>
<body>

<span>
读写模式：<a href = "http://www.runoob.com/php/php-file.html">r:只读 r+:读写 。。。</a>
<br />
<?php
$file=fopen("welcome.txt","r");
while (!feof($file))
{
    echo fgetc($file);
}
fclose($file);
// $unexit = fopen("hehe.txt", "r") or exit("unable to open hehe file");
?>
<br />
</span>>
</body>
</html>